package homework7;

public class Pet {

    private String name;
    private int age;
    private PetType type;

    public Pet() {
    }

    public Pet(String name, int age, PetType type) {
        this.name = name;
        this.age = age;
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public PetType getType() {
        return type;
    }

    public void play() {
        System.out.println("Playing with " + name);
    }
}
